import mongoose from 'mongoose'

const projectManagerLinkSchema = new mongoose.Schema({
  _id: {
    type: String,
    required: true
  },
  project: {
    type: mongoose.Schema.Types.ObjectId,
    ref: 'project',
    required: true,
  },
  manager: {
    type: mongoose.Schema.Types.ObjectId,
    ref: 'project-manager',
    required: true,
  }
})

export default mongoose.model('project-manager-link', projectManagerLinkSchema)
